#ifndef PANELSELECT_H_
#define PANELSELECT_H_

#include "../../../../nemosomen/DataModel/src/nemosomenBase.h"
#include "DataProtocol.h"

class PanelSelect : public Action
{
public:
	PanelSelect(int n){
		number=n;
	}
	virtual ~PanelSelect() {}
	void execute(AttributeHolder *attribs){
		printf("panel: %d\n",number);
		VideoDisplay *display = DisplayProtocol::getVideoDisplay(attribs);
		display->selected->set(number);
//		display->source1->get()->pos->get()->x->set(0.3);
//		display->source2->get()->pos->get()->x->set(0.3);
//		display->source3->get()->pos->get()->x->set(0.3);
//		display->source4->get()->pos->get()->x->set(0.3);
//		std::string panelName;
//				if (number==5) {
//					panelName="preview";
//				}
//				else {
//					std::ostringstream os;
//					os << "source" << number;
//					panelName=os.str();
//					DisplayPanel *p = (DisplayPanel*) display->getModel(panelName);
//					p->pos->get()->x->set(0.29);
//				}
	}
private:
	int number;
};

#endif /*PANELSELECT_H_*/



